package com.woniuxy.service.impl;

import com.woniuxy.service.RoleService;
import org.springframework.stereotype.Service;

/**
 * @BelongsProject: java-85-course-code
 * @BelongsPackage: com.woniuxy.service.impl
 * @Author: LiTongMiao
 * @Date: 2022/1/20 17:44
 * @Description: TODO
 */
@Service
public class RoleServiceImpl implements RoleService {
    @Override
    public void findAll() {
        System.out.println("RoleServiceImpl.findAll:执行");
    }

    @Override
    public void findOne() {
        try {
            int i =1/0;
        }catch(Exception e){
            throw new RuntimeException("后台维护中……");
        }
        System.out.println("RoleServiceImpl.findOne:执行");
    }
}
